package pl.edu.pb.wi.pwnography.model.form;

import javax.validation.constraints.NotNull;

import org.hibernate.validator.constraints.NotEmpty;
import org.hibernate.validator.constraints.Range;

import pl.edu.pb.wi.pwnography.modules.KNearestNeighbor;

public class KNearestNeighborForm extends MasterForm {
    @NotEmpty(message = "Wybierz prawidłową kolumnę.")
    private String secondColumn;
    @NotEmpty(message = "Wybierz prawidłową kolumnę.")
    private String classColumn;
    @Range(min = 1, message = "Wartość musi być większa lub równa 1.")
    private int kneighbors;
    @NotNull(message = "Wartość nie może być pusta.")
    private KNearestNeighbor.METRIC metric;

    public String getSecondColumn() {
	return secondColumn;
    }

    public void setSecondColumn(String secondColumn) {
	this.secondColumn = secondColumn;
    }

    public String getClassColumn() {
	return classColumn;
    }

    public void setClassColumn(String classColumn) {
	this.classColumn = classColumn;
    }

    public int getKneighbors() {
	return kneighbors;
    }

    public void setKneighbors(int kneighbors) {
	this.kneighbors = kneighbors;
    }

    public KNearestNeighbor.METRIC getMetric() {
	return metric;
    }

    public void setMetric(KNearestNeighbor.METRIC metric) {
	this.metric = metric;
    }

}
